<body>
	<?php 
    	$linkHome = $this->cmsUrl(array('action' => 'index'));
    ?>
    <div class="brand"><a href="<?php echo $linkHome?>">INTERNATIONAL ARTSERV</a></div>
    <?php 
    	$linkAdd = $this->cmsUrl(array(
									'module' => 'default',
									'controller' => 'index',
									'action' => 'add-new-item'
									));

        $linkSearch = $this->cmsUrl(array(
            'module' => 'default',
            'controller' => 'index',
            'action' => 'search-item'
        ));

        $linkPost = $this->cmsUrl(array('action' => 'index'));

    $userInfo = new Zendvn_System_Info();
    $userInfo = $userInfo->getMemberInfo();
    $classAdd = ' btn-add-frm';
    ?>
    
    <p class="btn-add-item">
    	<a id="btn-add-frm" class="btn fancybox.ajax <?php echo $classAdd ?>" href="<?php echo $linkAdd?>"></a>
    </p>
    <div class="btn-search-item search-icon">
    	<form role="form" id="appFormSearch" name="appFormSearch" action="<?php echo $linkPost?>" method="post">
	    	<input type="text" name="search_full_name" id="search_full_name" value="<?php echo @$this->arrParam['search_full_name']?>" placeholder="Search...">
	    	<a id="btn-add-event">&nbsp;</a>
	    	<a class="adv fancybox.ajax" href="<?php echo $linkSearch?>" role="button">adv</a>
	    </form>
    </div>
	<?php echo $this->render('includes/nav-menu.php')?>
	<div class="container" style="min-height: 600px;">
		<?php echo $this->layout()->content;?>	
		<?php echo $this->render('includes/btn-global.php')?>
    </div>
    
    <script>
		$(function(){
			$('#btn-add-frm, .adv').fancybox({
								maxWidth	: '850',
								minWidth	: '240',
								scrolling	: 'yes'
								});
			$('#btn-add-event').click(function(){
				if($('#search_full_name').css('display') != "none"){ 
					$('#appFormSearch').submit();
				}
				$('#search_full_name').show(500);
				$('.adv').show(900);
			})
		})
	</script>
    
